package com.guofen.dao;

import com.guofen.pojo.SjckHistoryList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface SjckHistoryListMapper {

    ArrayList<SjckHistoryList> selectAll(@Param("tableName") String tableName,
                                         @Param("signalName") String signalName);

    int countSum(String columnName, String tableName);

    ArrayList<SjckHistoryList> getTempByEquipAndTime(@Param("tableName") String tableName,
                                                     @Param("signalName") String signalName);
    ArrayList<SjckHistoryList> getMoiByEquipAndTime(@Param("tableName") String tableName,
                                                    @Param("signalName") String signalName);

    String[] getNameBySignalId(@Param("tableName") String tableName);

}
